CREATE TABLE [dbo].[TTFACT_INTE]
(
[CO_EMPR] [dbo].[TD_VC_002] NOT NULL,
[CO_MONE] [dbo].[TD_VC_003] NOT NULL,
[NU_DIAS] [dbo].[TD_IN_001] NOT NULL CONSTRAINT [DF__TTFACT_IN__NU_DI__7B1C2680] DEFAULT ((0)),
[NU_FACT] [dbo].[TD_NU_020_010] NULL CONSTRAINT [DF__TTFACT_IN__NU_FA__7C104AB9] DEFAULT ((0)),
[CO_USUA_CREA] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TTFACT_IN__CO_US__7D046EF2] DEFAULT (suser_sname()),
[FE_USUA_CREA] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTFACT_IN__FE_US__7DF8932B] DEFAULT (getdate()),
[CO_USUA_MODI] [dbo].[TD_VC_008_USUA] NOT NULL CONSTRAINT [DF__TTFACT_IN__CO_US__7EECB764] DEFAULT (suser_sname()),
[FE_USUA_MODI] [dbo].[TD_DT_001_SIST] NOT NULL CONSTRAINT [DF__TTFACT_IN__FE_US__7FE0DB9D] DEFAULT (getdate())
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTFACT_INTE] ADD CONSTRAINT [PK__TTFACT_I__57CF474845BF2700] PRIMARY KEY CLUSTERED  ([CO_EMPR], [CO_MONE], [NU_DIAS]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[TTFACT_INTE] ADD CONSTRAINT [FK__TTFACT_IN__CO_EM__5CF79213] FOREIGN KEY ([CO_EMPR]) REFERENCES [dbo].[TMPARA_TESO] ([CO_EMPR])
GO
